/******************************************************************************

  Copyright (C), 2012-2016, ZHANGYA

 ******************************************************************************
  File Name     : pwm.h
  Version       : Initial Draft
  Author        : zhangya
  Created       : 2024/5/8
  Last Modified :
  Description   : pwm.h
  Function List :
  History       :
  1.Date        : 2024/5/8
    Author      : zhangya
    Modification: Created file

******************************************************************************/

#ifndef _PWM_H_
#define _PWM_H_

#include "main.h"

#ifdef __cplusplus
extern "C" {
#endif

/*--------------------------------------------------------------------*
 * $external variables                           *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $external routine prototypes                  *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $internal routine prototypes                  *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $project-wide global variables                *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $module-wide global variables                 *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $constants                                    *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $macros                                       *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $routines' implementations                    *
 *--------------------------------------------------------------------*/

void bsp_pwm_start(uint8_t duty);
void bsp_pwm_stop(void);
flag_status bsp_pwm_get_state(void);
void bsp_pwm_set_duty(uint8_t duty);

#ifdef __cplusplus
}
#endif

#endif  //#ifndef _PWM_H_

